package com.hyx.bookManager.mapper;

import com.hyx.bookManager.domain.po.Tag;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;

import java.util.List;

@Mapper
@Component
public interface TagMapper {
    List<Tag> getAllTag();

    boolean insertBook2Tag(@Param("id") Long id,@Param("tagId") Long tagId);

    boolean insertTag(String tagName,Long id);
}
